import OpenAI from "openai";
import request from "../../../utils/request";


export const chat=(data)=>{
    return request({
        url: '/AIChat',
        method: 'post',
        data:data
    })
}
export const getChatRecord=(data)=>{
    return request({
        url: '/AIChat/getChatRecord',
        method: 'get',
        params: {
            account: data.account,
            sessionId: data.sessionId
        }
    })
}
export const getChatRecordList=(data)=>{
    return request({
        url: '/AIChat/getChatRecordList',
        method: 'get',
        params: {
            account: data,
        }
    })
}
export const deleteChat=(account,sessionId)=>{
    return request({
        url: '/AIChat/deleteChat',
        method: 'get',
        params: {
            account: account,
            sessionId: sessionId
        }
    })
}
